<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    protected function _initAutoLoad() {
        $modelLoader = new Zend_Application_Module_Autoloader(
                array(
            'namespace' => '',
            'basePath' => APPLICATION_PATH
        ));

        $acl = new Application_Model_LibraryAd();
        $auth = Zend_Auth::getInstance();

        $fc = Zend_Controller_Front::getInstance();
        $fc->registerPlugin(new Plugin_AccessCheck($acl, $auth));

        return $modelLoader;
    }

}

